package com.yztstudy.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 管理员的实体类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "admin_user")
public class AdminUser implements Serializable {

    public static final Long serialVersionUID = 1L;

    // 成员变量

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId; // 管理员主键

    @TableField(value = "user_name")
    private String userName; // 用户名

    @TableField(value = "user_account")
    private String userAccount; // 账号

    @TableField(value = "user_password")
    private String userPassword; // 密码

    @TableField(value = "user_phone")
    private String userPhone; // 手机号

    @TableField(value = "create_time")
    private Date createTime; // 创建时间

    @TableField(value = "user_role")
    private Integer userRole; // 角色
}
